package com.hexiang.service;

import com.hexiang.BookServiceFacade;
import com.hexiang.dubbo.validator.UniqueBookName;
import com.hexiang.entity.BookReqDto;
import com.hexiang.entity.ResultResponse;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.validation.annotation.Validated;

/**
 * @author h01463
 * @version 1.0
 * @date 2024/7/26 15:41
 */
@DubboService(validation = "true",filter = "-validation,customValidationFilter")
public class BookServiceFacadeImpl implements BookServiceFacade {
    @Override
    public ResultResponse createBook(@Validated @UniqueBookName BookReqDto bookReqDto) {
        return ResultResponse.success("新增书籍成功", bookReqDto);
    }
}
